import { useState } from "react";

export function uiHooks(): string {
  return 'ui-hooks';
}

export const useCounter = () => {
  const [counter, setCounter] = useState(10);
  const add = () => {
    setCounter((state)=>state+1);
  };

  return {counter, add, setCounter}
};
